import React, { Component } from 'react'
import PropTypes from 'prop-types';

export default class Child2 extends Component {
    static propTypes={
        num:Number
    }
  render() {
    return (
      <div>子组件2收到父组件的值是{this.props.num}</div>
    )
  }
}
